package cn.ydxiaoshuai.tools.vo;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 小帅丶
 * @className ParamBean
 * @Description 参数bean
 * @Date 2020/10/14-10:26
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ParamBean {
    private String log_id;
    private String image;
    private String openId;
    private String nickName;
    private String avatarUrl;
    private String ip;
    private String userAgent;
    private String recordTime = DateUtil.format(new Date(), DatePattern.NORM_DATETIME_PATTERN);

    public ParamBean(String image, String openId, String nickName, String avatarUrl, String ip, String userAgent) {
        this.image = image;
        this.openId = openId;
        this.nickName = nickName;
        this.avatarUrl = avatarUrl;
        this.ip = ip;
        this.userAgent = userAgent;
    }
}
